package com.ruikong.dazhi.dao.basicinfo;

import com.ruikong.dazhi.entity.basicinfo.Stock;
import com.ruikong.dazhi.model.input.StockPageInput;

import java.util.List;
import java.util.Set;

/**
 * (Stock)表数据库访问层
 *
 * @author HuaJiaYi
 * @since 2021-09-09 13:22:09
 */
public interface StockMapper {
    Stock queryById(Integer id);

    int queryByTypeId(Integer type_id);

    int insert(Stock p);

    int update(Stock p);

    int deleteById(Integer id);

    List<Stock> getStockPageList(StockPageInput input);

    Integer isExist(Stock s);

    List<Stock> searchStockByBom(String stock_name, List<Integer> list);

    List<Stock> queryAllExistStock();

    List<Stock> queryStockByName(String stockName, Set<Integer> list);

    Integer getId();

    List<Stock> getUnitStock();

    Integer isStockExist(String stockSn);

    Integer getIdByStockSn(String stockSn);


    Stock selectByStockSn(String stockSn);

}

